package cn.iocoder.lw.module.core.convert.project;

import cn.iocoder.lw.framework.common.pojo.PageResult;
import cn.iocoder.lw.module.core.controller.admin.project.vo.*;
import cn.iocoder.lw.module.core.dal.dataobject.project.CoreProjectDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 项目 Convert
 *
 * @author Lw源码
 */
@Mapper
public interface CoreProjectConvert {

    CoreProjectConvert INSTANCE = Mappers.getMapper(CoreProjectConvert.class);

    CoreProjectDO convert(CoreProjectSaveReqVO bean);

    CoreProjectRespVO convert(CoreProjectDO bean);

    List<CoreProjectRespVO> convertList(List<CoreProjectDO> list);

    PageResult<CoreProjectRespVO> convertPage(PageResult<CoreProjectDO> page);

    List<CoreProjectImportExcelVO> convertList02(List<CoreProjectDO> list);

}